<?php
namespace App\Model;
use Think\Model;

class TokenModel extends Model{

	public function getTokenTime($token)
	{
		$time = time();
		$res = M('user') -> where("token=%s",$token) -> find();
		if($res[0]['tokenTime'] > $time)
		{
			return true;
		}else
		{
			return false;
		}
	}



}